package facadePattern;

/**
 * @author： pang-yun
 * @date： 2021-12-27 15:46
 * 功能目的 ：用于
 */

public class DVDPlayer {
    private DVDPlayer() {
    }

    private static DVDPlayer instance = new DVDPlayer();

    public static DVDPlayer getInstance() {
        return instance;
    }

    public void on(){
        System.out.println("DVD on");
    }

    public void off(){
        System.out.println("DVD off");
    }

    public void play(){
        System.out.println("DVD is playing");
    }

    public void pause(){
        System.out.println("DVD pause...");
    }
}
